<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
    <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery-19.js">

    </script>
    <script type="text/javascript">
        var scrolltotop={
            setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
            controlHTML: '<img src="<?php echo get_template_directory_uri(); ?>/images/buttontop.png"  />',
            controlattrs: {offsetx:5, offsety:5},
            anchorkeyword: '#top',

            state: {isvisible:false, shouldvisible:false},

            scrollup:function(){
                if (!this.cssfixedsupport)
                    this.$control.css({opacity:0})
                var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
                if (typeof dest=="string" && jQuery('#'+dest).length==1)
                    dest=jQuery('#'+dest).offset().top
                else
                    dest=0
                this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
            },

            keepfixed:function(){
                var $window=jQuery(window)
                var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
                var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
                this.$control.css({left:controlx+'px', top:controly+'px'})
            },

            togglecontrol:function(){
                var scrolltop=jQuery(window).scrollTop()
                if (!this.cssfixedsupport)
                    this.keepfixed()
                this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
                if (this.state.shouldvisible && !this.state.isvisible){
                    this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
                    this.state.isvisible=true
                }
                else if (this.state.shouldvisible==false && this.state.isvisible){
                    this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
                    this.state.isvisible=false
                }
            },

            init:function(){
                jQuery(document).ready(function($){
                    var mainobj=scrolltotop
                    var iebrws=document.all
                    mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest
                    mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
                    mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                        .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                        .attr({title:'Scroll Back to Top'})
                        .click(function(){mainobj.scrollup(); return false})
                        .appendTo('body')
                    if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='')
                        mainobj.$control.css({width:mainobj.$control.width()})
                    mainobj.togglecontrol()
                    $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                        mainobj.scrollup()
                        return false
                    })
                    $(window).bind('scroll resize', function(e){
                        mainobj.togglecontrol()
                    })
                })
            }
        }

        scrolltotop.init();


    </script>


</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
	<header id="masthead" class="site-header" role="banner">
        <div class="topmenu overflowclear">
            <div class="marginauto">
            <ul>
                <li><a href="#">Trang chủ </a></li>
                <li><a href="#">Giới thiệu </a></li>
                <li><a href="#">Tuyển dụng </a></li>
                <li><a href="#">Liên hệ </a></li>
                <li><a href="#">Chi nhánh </a></li>
                <li><a href="#">Đội ngũ </a></li>

            </ul>
            </div>
        </div>
        <div class="overflowclear logo">
            <div class="floatleft relativeposition"><a href="<?php echo get_site_url(); ?>">
                    <img alt="Nha khoa 3d" src="<?php echo get_template_directory_uri(); ?>/images/logo_newsmilevn_up.png">
                </a>
                <div class="flashlogo">
                </div>
            </div>
            <div class="floatright">
                <?php echo get_search_form(true); ?>
            </div>
        </div>

<div class="slideheader">
    
    <?php do_action('slideshow_deploy', '146'); ?>

</div>
		<nav id="site-navigation" class="main-navigation" role="navigation">
			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
		</nav><!-- #site-navigation -->

		<?php $header_image = get_header_image();
		if ( ! empty( $header_image ) ) : ?>
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
		<?php endif; ?>
	</header><!-- #masthead -->

	<div id="main" class="wrapper">
        <div class="bannersupport">
            <img src="<?php echo get_template_directory_uri(); ?>/images/chamsockh.png" />
        </div>